package com.aiwei.tdjk.bean.highChart;

import net.sf.json.JSON;


/**
 * 统计图表数据<br>
 * 统计内部数据表现形式为:data:[{name:'',y:'',drilldown:'',params:''}]
 */
public class SeriesDatasVO {

	/** 对应X轴的key,即name */
	private String categoryKey;
	
	/** 对应X轴的数据 */
	private Object Y;
	
	/** 
	 * 是否需要下钻  配合params使用
	 */
	private boolean isDrilldown;
	
	/** 下钻传递的参数 :json格式{key:key,name:name,sex:sex,data:data...}，下钻需要通过action请求来处理*/
	private JSON params;
	
	/**
	 * 下钻方法：<br>
	 * "1" : 下钻,"2": 下钻
	 * 
	 */
	private String upOrDown;
	
	public SeriesDatasVO(){
		
	}
	
	/**
	 * 不需要下钻的构造函数
	 * @param categoryKey
	 * @param Y
	 */
	public SeriesDatasVO(String categoryKey,Object Y){
		this.categoryKey = categoryKey;
		this.Y = Y;
	}
	
	/**
	 * 用于下钻的构造函数
	 * @param categoryKey
	 * 				对应X轴key
	 * @param Y
	 * 			Y轴数据
	 * @param isDrilldown
	 * 			是否需要下钻
	 * @param params
	 * 			下钻使用的参数
	 */
	public SeriesDatasVO(String categoryKey,Object Y,boolean isDrilldown,JSON params,String upOrDown){
		this.categoryKey = categoryKey;
		this.Y = Y;
		this.isDrilldown = isDrilldown;
		this.params = params;
		this.upOrDown = upOrDown;
	}

	public String getCategoryKey() {
		return categoryKey;
	}

	public void setCategoryKey(String categoryKey) {
		this.categoryKey = categoryKey;
	}

	public Object getY() {
		return Y;
	}

	public void setY(Object y) {
		Y = y;
	}

	public boolean isDrilldown() {
		return isDrilldown;
	}

	public void setDrilldown(boolean isDrilldown) {
		this.isDrilldown = isDrilldown;
	}

	public JSON getParams() {
		return params;
	}

	public void setParams(JSON params) {
		this.params = params;
	}

	public String getUpOrDown() {
		return upOrDown;
	}

	public void setUpOrDown(String upOrDown) {
		this.upOrDown = upOrDown;
	}
}
